/**
 * 
 */
package com.linkage.lcims.base.service.cdma.impl;

import com.linkage.lcims.base.AdminBean;
import com.linkage.lcims.base.dao.cdma.interfaces.VpdnBindImsiDAO;
import com.linkage.lcims.base.po.cdma.CVpdnBindImsi;
import com.linkage.lcims.base.service.cdma.interfaces.VpdnBindImsiBaseBO;
import com.linkage.lcims.base.service.system.interfaces.AdminLogBO;
import com.linkage.util.exception.ServiceException;
import com.linkage.util.log.Logger;

/**
 * 
 */
public abstract class VpdnBindImsiBaseBOImpl implements VpdnBindImsiBaseBO {

	protected Logger log = Logger.getLogger(this.getClass());

	protected AdminLogBO adminLogBO;

	protected VpdnBindImsiDAO vpdnBindImsiDAO;
	
	protected String message;
	

	public abstract boolean addSubmit(CVpdnBindImsi vpdnBindImsi,
			AdminBean admin) throws ServiceException;

	public abstract boolean modSubmit(CVpdnBindImsi vpdnBindImsi,
			AdminBean admin) throws ServiceException;

	public abstract boolean removeSubmit(CVpdnBindImsi vpdnBindImsi,
			AdminBean admin) throws ServiceException;

	public void deleteSubmit(CVpdnBindImsi vpdnBindImsi)
			throws ServiceException {
		try {
			vpdnBindImsiDAO.deleteVpdnBindImsi(vpdnBindImsi);
		} catch (Exception e) {
			throw new ServiceException(e, this.getClass());
		}

	}

	public void insertSubmit(CVpdnBindImsi vpdnBindImsi)
			throws ServiceException {
		try {
			vpdnBindImsiDAO.saveVpdnBindImsi(vpdnBindImsi);
		} catch (Exception e) {
			throw new ServiceException(e, this.getClass());
		}

	}

	public void updateSubmit(CVpdnBindImsi vpdnBindImsi)
			throws ServiceException {
		try {
			vpdnBindImsiDAO.updateVpdnBindImsi(vpdnBindImsi);
		} catch (Exception e) {
			throw new ServiceException(e, this.getClass());
		}

	}

	public CVpdnBindImsi getVpdnBindImsi(CVpdnBindImsi vpdnBindImsi,
			AdminBean admin) throws ServiceException {
		CVpdnBindImsi pdsnVpdnBindImsiRet = null;
		try {
			pdsnVpdnBindImsiRet = vpdnBindImsiDAO.getVpdnBindImsi(vpdnBindImsi);
		} catch (Exception e) {
			throw new ServiceException(e, this.getClass());
		}
		return pdsnVpdnBindImsiRet;
	}

	public Logger getLog() {
		return log;
	}

	public void setLog(Logger log) {
		this.log = log;
	}

	public AdminLogBO getAdminLogBO() {
		return adminLogBO;
	}

	public void setAdminLogBO(AdminLogBO adminLogBO) {
		this.adminLogBO = adminLogBO;
	}

	public VpdnBindImsiDAO getVpdnBindImsiDAO() {
		return vpdnBindImsiDAO;
	}

	public void setVpdnBindImsiDAO(VpdnBindImsiDAO vpdnBindImsiDAO) {
		this.vpdnBindImsiDAO = vpdnBindImsiDAO;
	}


	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
